﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TechMadeira.Core.Logging
{
    public class Logger
    {
        #region Singleton usage: Logger.Instance
        private static readonly Logger mInstance = new Logger();

        static Logger()
        {
        }

        private Logger()
        {
        }

        public static Logger Instance {
            get { return mInstance; }
        }

        #endregion

        public IRecorder Recorder { get; set; }

        public void Log( string aFormat, params object[] aArgs )
        {
            if ( Recorder == null ) return;
            Recorder.Record( aFormat, aArgs );
        }
    }
}
